package com.cloudpivot.project.crmprojectnew.pojo.contact;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class ContactList {

    @JsonProperty(value = "@odata.count")
    private int odatacount;

    @JsonProperty(value = "count")
    private int count;
    public void setCount(){
        this.count = this.odatacount;
    }
    public int getCount() {
        return this.odatacount;
    }

    @JsonProperty(value = "value")
    private List<Contact> contactList;

    @JsonProperty(value = "@odata.nextLink", access = JsonProperty.Access.WRITE_ONLY)
    private String nextLink;
}
